
<?php foreach($marks as $key=>$marks): ?>
    <tr>
        <td>

            <?php
            $str = implode($marks['score']);
            $lengths = strlen($str);
            echo $lengths;?>
        </td>
    </tr>
<?php endforeach; ?>

<?php  echo $length;?>
